import { useLocation, useNavigate } from "react-router-dom";

/**
 * 处理路由
 */
export const useRouter = () => {
  const location = useLocation();
  const navigate = useNavigate();

  return {
    location,
    navigate,
  };
};
